package com.wsj.service.impl;

import java.util.List;

import com.wsj.dao.IHomeSiteNewsCommentDao;
import com.wsj.service.IHomeSiteNewsCommentServ;
import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.vo.homeSite.HomeSiteNewsComment;

public class HomeSiteNewsCommentServImpl implements IHomeSiteNewsCommentServ {

	private IHomeSiteNewsCommentDao homeSiteNewsCommentDao;
	
	public void del(Integer id) throws BusinessException {
		this.homeSiteNewsCommentDao.del(id);
	}

	public HomeSiteNewsComment loadById(Integer id) throws BusinessException {
		return this.homeSiteNewsCommentDao.loadById(id);
	}

	public List<HomeSiteNewsComment> loadByNewsId(Integer newsId)
			throws BusinessException {
		if(newsId != null){
			return this.homeSiteNewsCommentDao.loadByNewsId(newsId);
		}
		return null;
	}

	public PageResultSet loadPageList(Long newsId, Short isDel,
			Short audite, Integer page, Integer pageSize)
			throws BusinessException {
		return this.homeSiteNewsCommentDao.loadPageList(newsId, isDel, audite, page, pageSize);
	}

	public void saveOrUpdate(HomeSiteNewsComment hsCommend)
			throws BusinessException {
			this.homeSiteNewsCommentDao.saveOrUpdate(hsCommend);
	}

	public IHomeSiteNewsCommentDao getHomeSiteNewsCommentDao() {
		return homeSiteNewsCommentDao;
	}

	public void setHomeSiteNewsCommentDao(
			IHomeSiteNewsCommentDao homeSiteNewsCommentDao) {
		this.homeSiteNewsCommentDao = homeSiteNewsCommentDao;
	}


}
